# Contributor: Florian Heigl <florian.heigl@gmail.com>
# Maintainer: Florian Heigl <florian.heigl@gmail.com>
pkgname=nvme-cli
pkgver=1.12
pkgrel=0
pkgdesc="NVM-Express user space tooling for Linux"
options="!check" # Requires nose2
arch="all"
url="https://github.com/linux-nvme/nvme-cli"
license="GPL-2.0-only"
makedepends="linux-headers coreutils util-linux-dev util-linux"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/nvme-cli/archive/v$pkgver.tar.gz
	"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev install
	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="6f472c3366f628218a0cb5de83488d028a5fc2d88cc107a27b1067a50f3e9e8c8473bc695d137c61e86eae0d245623d5cc698df4717df6d37167dcefb2e51831  nvme-cli-1.12.tar.gz"
